//
//  KLUserInfo.m
//  kularkDemo
//
//  Created by szblsx2 on 2020/4/22.
//  Copyright © 2020 szblsx. All rights reserved.
//

#import "KLUserInfo.h"

@implementation KLUserInfo

static KLUserInfo *shareInstance;

+ (instancetype)shared{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        shareInstance = [[self alloc] init];
    });
    return shareInstance;
}

- (instancetype)init{
    if (self = [super init]) {
        NSUInteger num = arc4random_uniform(99) + 1;
        _userId = kDeviceUUID;
        _userName = [NSString stringWithFormat:@"用户%zd",num];
    }
    return self;
}


@end
